package p270jp.pxv.android.activity;

import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.text.style.StyleSpan;
import android.widget.TextView;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import p014ae.AbstractActivityC0118m0;
import p014ae.View$OnClickListenerC0151s;
import p014ae.View$OnClickListenerC0158t;
import p014ae.View$OnClickListenerC0163u;
import p047bg.C1124a;
import p134ei.AnalyticsScreenName;
import p134ei.PixivAnalytics;
import p210hh.PixivAccountManager;
import p270jp.pxv.android.R;
import p270jp.pxv.android.commonObjects.model.ApplicationConfig;
import p314lg.ActivityFeedbackBinding;
import p325m0.MutabilityOwnership;
import p671zc.CompositeDisposable;

/* compiled from: FeedbackActivity.kt */
/* renamed from: jp.pxv.android.activity.FeedbackActivity */
/* loaded from: classes2.dex */
public final class FeedbackActivity extends AbstractActivityC0118m0 {

    /* renamed from: f0 */
    public static final /* synthetic */ int f18341f0 = 0;

    /* renamed from: b0 */
    public ActivityFeedbackBinding f18342b0;

    /* renamed from: c0 */
    public String f18343c0 = "";

    /* renamed from: d0 */
    public final CompositeDisposable f18344d0 = new CompositeDisposable();

    /* renamed from: e0 */
    public ApplicationConfig f18345e0;

    @Override // p270jp.pxv.android.activity.AbstractActivityC4151b, p270jp.pxv.android.activity.BaseActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        ViewDataBinding d = DataBindingUtil.m11369d(this, R.layout.activity_feedback);
        MutabilityOwnership.m3746l(d, "setContentView(this, R.layout.activity_feedback)");
        ActivityFeedbackBinding fVar = (ActivityFeedbackBinding) d;
        this.f18342b0 = fVar;
        C1124a.m10197Q(this, fVar.f21552w, R.string.feedback);
        PixivAnalytics eVar = this.f18757A;
        MutabilityOwnership.m3746l(eVar, "pixivAnalytics");
        eVar.m6524f(AnalyticsScreenName.FEEDBACK, null);
        if (!PixivAccountManager.m5511e().f16506l) {
            this.f18773J.setDrawerLockMode(1);
        }
        ActivityFeedbackBinding fVar2 = this.f18342b0;
        if (fVar2 != null) {
            fVar2.f21547r.setOnClickListener(new View$OnClickListenerC0158t(this, 0));
            ActivityFeedbackBinding fVar3 = this.f18342b0;
            if (fVar3 != null) {
                fVar3.f21546q.setOnClickListener(new View$OnClickListenerC0151s(this, 0));
                ActivityFeedbackBinding fVar4 = this.f18342b0;
                if (fVar4 != null) {
                    fVar4.f21550u.setOnClickListener(new View$OnClickListenerC0163u(this, 0));
                    ActivityFeedbackBinding fVar5 = this.f18342b0;
                    if (fVar5 != null) {
                        TextView textView = fVar5.f21551v;
                        String string = getString(R.string.feedback_information);
                        MutabilityOwnership.m3746l(string, "getString(jp.pxv.android…ing.feedback_information)");
                        String string2 = getString(R.string.feedback_information_bold_text);
                        MutabilityOwnership.m3746l(string2, "getString(jp.pxv.android…ck_information_bold_text)");
                        SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder(string);
                        Matcher matcher = Pattern.compile(string2).matcher(string);
                        if (matcher.find()) {
                            spannableStringBuilder.setSpan(new StyleSpan(1), matcher.start(), matcher.end(), 33);
                        }
                        textView.setText(spannableStringBuilder);
                        return;
                    }
                    MutabilityOwnership.m3737u("binding");
                    throw null;
                }
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
        MutabilityOwnership.m3737u("binding");
        throw null;
    }

    @Override // p014ae.AdActivity, p270jp.pxv.android.activity.BaseActivity, p116e.ActivityC2727f, androidx.fragment.app.FragmentActivity, android.app.Activity
    public void onDestroy() {
        super.onDestroy();
        this.f18344d0.m80f();
    }
}
